From: Julian Sparber Date: Wed, 22 May 2024 08:45:04 +0000 (+0200) Subject: messageList: Drop unused Message._onDestroy() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~173^2^2~8 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=03e5d4bdd89b695e4699862cd8efe61a907aa37c;p=gnome-shell.git messageList: Drop unused Message._onDestroy() This method isn't used and users (e.g extensions) of `Message` can connect to the destroy signal if they need it. Part-of: --- diff --git a/js/ui/messageList.js b/js/ui/messageList.js index cf19648d1..c62b4c1f4 100644 --- a/js/ui/messageList.js +++ b/js/ui/messageList.js @@ -489,8 +489,6 @@ export const Message = GObject.registerClass({ }); contentBox.add_child(this._bodyBin); - this.connect('destroy', this._onDestroy.bind(this)); - this._header.closeButton.connect('clicked', this.close.bind(this)); this._header.closeButton.visible = this.canClose(); @@ -642,9 +640,6 @@ export const Message = GObject.registerClass({ return false; } - _onDestroy() { - } - vfunc_key_press_event(event) { let keysym = event.get_key_symbol();